import Login from "../pages/Login";
import Index from "../pages/admin/dashboard/Index";
import List from "../pages/admin/products/List";
import Edit from "../pages/admin/products/Edit";
import PageNotFound from "../pages/PageNotFound";

export const mainRoutes = [{
    path:'/login',
    component: Login
},{
    path: '/404',
    component: PageNotFound
}]

export const adminRoutes = [{
    path:'/admin/dashboard',
    isShow: true,
    title: '看板',
    icon: 'area-chart',
    component: Index
},{
    path: '/admin/products',
    component: List,
    isShow: true,
    title: '商品管理',
    icon: 'shop',
    exact: true
},{
    path: '/admin/products/edit/:id',
    isShow: false,
    component: Edit
}
]